<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
<title>Developer Console</title>
</head>
<link rel="stylesheet" href="../../resources/css/main.css"
	type="text/css">
<script src="../../script/base.js"></script>
<script src="../../script/control.js"></script>
<script language="JavaScript">
  var contextPath = "<c:out value='${pageContext.request.contextPath}'/>";
</script>
<body>
<f:view>
	<f:loadBundle basename="net.orange.conf.lang.fw" var="msg" />
	<h:form id="myForm">
		<h:panelGrid columns="2" rowClasses="content-title"
			style="width:100%;">
			<h:outputText value="#{msg.console_title_1}." />

			<h:panelGroup style="text-align:right">
				<h:commandButton value="#{msg.console_execute}" type="submit" id="cmdExecute"
					action="#{console.execute}" styleClass="button-normal" />
			</h:panelGroup>
		</h:panelGrid>

		<h:messages styleClass="content-message" />

		<h:panelGrid rowClasses="content-detail-title,content-detail"
			style="width:100%">
			<h:outputLabel value="#{msg.console_script}:" />
			<h:inputTextarea value="#{console.script}" id="script" rows="10" />

			<h:outputLabel value="#{msg.console_result}:" />
			<h:inputTextarea value="#{console.result}" id="result" rows="10" />
		</h:panelGrid>
	</h:form>
</f:view>
</body>
</html>
